import req from '@/utils/request.js';
import * as URL from '@/constants/api.js';


// 获取热映电影列表
export function getHotMovieList() {
  return req({
    url: URL.HOT_MOVIE_LIST,
    params: {
      input: '',
    },
  })
    .then((res) => res.data.data)
    .catch((err) => promise.reject(err.response.data));
};

// 获取影院列表
export function getCinemaList() {
  return req({
    url: URL.CINEMA_LIST,
    params: {
      input: '',
    },
  })
    .then((res) => res.data.data)
    .catch((err) => promise.reject(err.response.data));
}
